﻿@page
@using Microsoft.AspNetCore.Mvc.Localization
@using Tolo.SimplePG.Localization
@using Volo.Abp.Users
@inject IHtmlLocalizer<SimplePGResource> L
@model Tolo.SimplePG.Pages.IndexModel
@inject ICurrentUser CurrentUser
@section styles {
    <abp-style src="/Pages/Index.cshtml.css" />
}
@section scripts {
    <abp-script src="/Pages/Index.cshtml.js" />
}
<div class="container">
    <abp-card>
        <abp-card-header>
            <abp-card-title>
                @L["Welcome_Title"]
            </abp-card-title>
        </abp-card-header>
        <abp-card-body>
            @L["Welcome_Text"]
            @if (!CurrentUser.IsAuthenticated)
            {
                <div class="mt-3">
                    <a abp-button="Primary" href="~/Account/Login">@L["Login"]</a>
                </div>

            }
        </abp-card-body>
    </abp-card>

    <div class="card mt-5">
        <div class="card-body">
            <div class="row">
                <div class="col-md-auto text-center">
                    <img src="https://abp.io/assets/png/mastering-abp-framework.webp" style="max-width: 400px;" class="w-100 mb-5 my-md-3">
                </div>
                <div class="col-md d-flex align-items-center">
                    <div class="pe-0 pe-md-4">
                        <small class="text-uppercase text-muted">The Official Guide</small>
                        <h2 class="mb-4">Mastering ABP Framework</h2>
                        <p class="mb-4">Written by the creator of the ABP Framework, this book will help you gain a complete understanding of the framework and modern web application development techniques.</p>
                        <div class="mb-4">
                            <a href="https://www.amazon.com/gp/product/B097Z2DM8Q/ref=dbs_a_def_rwt_hsch_vapi_tkin_p1_i0" class="btn btn-success mb-1">
                                Buy on Amazon US
                            </a>
                            <a href="https://www.packtpub.com/product/mastering-abp-framework/9781801079242" class="btn btn-primary mb-1">
                                Buy on PACKT
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
